﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master.Master" AutoEventWireup="true" CodeBehind="DetailProduct.aspx.cs" Inherits="ElectronicSelling.DetailProduct" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="path">
        <a href="Default.aspx">
            <% Response.Write(ElectronicSelling.Utilities.ConstantDefault.Home_Text); %>
        </a>
        <%if (Request.QueryString["sid"] != null)
          {%>
        &nbsp;>&nbsp;
        <a href="ProductList.aspx?sid=<% Response.Write(Request.QueryString["sid"].ToString());%>">
            <%=GetPathSection() %>
        </a>
        <% } %>
        <%if (Request.QueryString["sid"] != null)
          {%>
        &nbsp;>&nbsp;
        <a href="ProductList.aspx?sid=<% Response.Write(Request.QueryString["sid"].ToString());%>&cid=<% Response.Write(Request.QueryString["sid"].ToString());%>">
            <%=GetPathCategory() %>
        </a>
        <% } %>
        <%if (Request.QueryString["pid"] != null)
          {%>
        &nbsp;>&nbsp;
        <a href="DetailProduct.aspx?sid=<% Response.Write(Request.QueryString["sid"].ToString());%>&cid=<% Response.Write(Request.QueryString["sid"].ToString());%>&pid=<% Response.Write(Request.QueryString["pid"].ToString());%>">
            <%=GetPathProduct() %>
        </a>
        <% } %>
    </div>

    <div class="main_content">
        <asp:Repeater ID="rptDetailView" runat="server">
            <ItemTemplate>
                <div class="detail_left">
                    <div class="product_img">
                        <img src="<%#Eval("Image") %>" />
                    </div>
                </div>
                <div class="detail_right">
                    <span class="detail_title"><%#Eval("Name") %></span>
                    <hr />
                    <span class="detail">Hãng sản xuất:&nbsp;&nbsp;&nbsp;</span><%#Eval("Manufacture") %>
                    <br />
                    <span class="detail">Giá bán:&nbsp;&nbsp;&nbsp;</span>
                    <strong><%#Eval("OldPrice", "{0:0,0}") %></strong>
                    <br />
                    <span class="detail_price"><%#Eval("CurrentPrice", "{0:0,0}") %> đ</span>
                    <br />
                    <span class="detail">Số lượng còn:&nbsp;&nbsp;&nbsp;</span><%#Eval("Quantity") %>
                    <br />
                    <span class="detail">Thời hạn bảo hành:&nbsp;&nbsp;&nbsp;</span><%#Eval("Guarantee") %>&nbsp;Tháng
            <br />
                    <span class="detail">
                        <img src="Images/icon_km.gif" />
                        &nbsp;&nbsp;&nbsp;</span><%#Eval("BonusName") %>
                    <br />
                    <span class="detail">Mô tả sản phẩm:&nbsp;&nbsp;&nbsp;</span>
                    <div class="line"></div>
                    <p>
                        <%#Eval("Description") %>
                    </p>
                    <br />
                    <strong>Số lượng</strong>
                    <asp:TextBox ID="txtQuantity" runat="server"></asp:TextBox>
                    <asp:RegularExpressionValidator CssClass="error_text" ID="RegularExpressionValidator1" runat="server"
                        ControlToValidate="txtQuantity"
                        ErrorMessage="Chỉ có thể nhập số"
                        ValidationExpression="^\d+$">
                    </asp:RegularExpressionValidator>
                    <div class="button">
                        <asp:LinkButton ID="lbtBuyAccept" runat="server" OnClick="lbtBuyAccept_Click">Đặt mua hàng</asp:LinkButton>
                    </div>
                </div>
                <div class="clear"></div>
                <div class="detail_product">
                    <div class="detail_title" style="margin: 0px 0px 5px 0px; color: #797979">Thông tin chi tiết</div>
                    <hr />
                    <p>
                        <%#Eval("Intro") %>
                    </p>
                </div>
            </ItemTemplate>
        </asp:Repeater>
    </div>
</asp:Content>
